package com.example.batchprocessing.test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.context.annotation.Bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.lang.annotation.Annotation;

@Entity
@Data
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
public class PeopleX implements Bean {
    @Id
	@GeneratedValue(strategy= GenerationType.AUTO)
	private Integer person_id;
    private String last_name;
    private String first_name;

    @Override
    public String[] value() {
        return new String[0];
    }

    @Override
    public String[] name() {
        return new String[0];
    }

    @Override
    public Autowire autowire() {
        return null;
    }

    @Override
    public boolean autowireCandidate() {
        return false;
    }

    @Override
    public String initMethod() {
        return null;
    }

    @Override
    public String destroyMethod() {
        return null;
    }

    @Override
    public Class<? extends Annotation> annotationType() {
        return null;
    }
}
